<template>
  <div style="width:180px;">
    <div style="width: 100%;
      position: relative;">
      <div style="width: 2px;
      height: 60px;
      background-color: #00704E;
      position: absolute;"></div>
      <div style="color: #fff;
      margin-left: 10px;
      margin-bottom: 17px;
      font-size: 14px;">{{defaultConfig.title}}</div>
      <div style="width: 100%;
      margin-left: 10px;
      position: relative;">
        <img
          src="../assets/22.png"
          alt=""
        >
        <div style="font-size: 14px;
      position: absolute;
      top: 9px;
      left: 20px;
      width: 65%;
      height: 28px;
      display: flex;
      justify-content: space-around;
      align-items: center;
      color: #00704E;">
          <span style="position: relative;">限</span>
          <span style="position: relative;left:8px;">行</span>
          <span style="position: relative;left:3px;padding-left:10px">号</span>
          <span style="position: relative;
      left: 12px;
      color: #9EB2BC;
      font-weight: bold;">{{litmitNum}}</span>
        </div>
        <div
          v-for="item in data"
          :key="item.id"
          style="width: 86%;
      margin-top: 5px;
      font-size: 12px;
      color: #fff;
      padding-bottom: 4px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.3);"
        >
          <div style="display: flex;
      justify-content: space-between;
      align-items: center;">
            <div>{{item.place}}</div>
            <div>{{item.reason}}</div>
          </div>
          <div style="display: flex;
      justify-content: space-between;
      color: #00704E;
      margin-top: 4px;">
            <div style="flex:1;">{{item.date}}</div>
            <div style="flex: 2;
      display: flex;
      justify-content: space-between;
      align-items: center;">
              <div>{{item.startTime}}</div>
              <div style="width: 100%;
      border-bottom: 1px dashed #00704E;
      margin-left: 5px;
      margin-right: 5px;"></div>
              <div>{{item.endTime}}</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      defaultConfig: {
        title: "限行内容",
      },
      litmitNum: 8, //限行号码
      data: [
        {
          place: "花家地北里14号", //限行路段
          reason: "工程修路", //限行原因
          date: "9月10日", //限行日期
          startTime: "10:00", //开始时间
          endTime: "17:00", //结束时间
        },
        {
          place: "花家地北里14号",
          reason: "工程修路",
          date: "9月11日",
          startTime: "10:00",
          endTime: "17:00",
        },
        {
          place: "花家地北里14号",
          reason: "工程修路",
          date: "9月12日",
          startTime: "10:00",
          endTime: "17:00",
        },
      ],
    };
  },
};
</script>

<style>
/* .wrap{
    width: 100%;
    position: relative;
}
.left-bar{
    width: 2px;
    height: 60px;
    background-color: #00704E;
    position: absolute;
}
.title{
    color: #fff;
    margin-left: 10px;
    margin-bottom: 17px;
    font-size: 14px;
}
.content{
    width: 100%;
    margin-left: 10px;
    position: relative;
}
.limitNum{
    font-size: 14px;
    position: absolute;
    top: 9px;
    left: 18px;
    width: 65%;
    height: 28px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: #00704E;
}
.limitNum > span:nth-child(1){
    position: relative;
    left: -1px;
}
.limitNum > span:nth-child(4){
    position: relative;
    left: 4px;
    color: #9EB2BC;
    font-weight: bold;
}
.item{
    width: 86%;
    margin-top: 5px;
    font-size: 12px;
    color: #fff;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.top{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btm{
    display: flex;
    justify-content: space-between;
    color: #00704E;
    margin-top: 4px;
}
.date{
    flex:1;
}
.time{
    flex: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.splitLine{
    width: 100%;
    border-bottom: 1px dashed #00704E;
    margin-left: 5px;
    margin-right: 5px;
} */
</style>